import React, { memo } from 'react'
import { useSelector } from "react-redux";
import { HomeWrapper } from "./style";
export default memo(function HjHome(props) {

  // redux hooks
  const {username} = useSelector(state =>({
    username:state.userInfo.user.username
  }))
  return (
    <HomeWrapper>
      <div className="content">
        歡迎：{username}， 歡迎登錄俊哥後台管理系統
      </div>
    </HomeWrapper>
  )
})
